# readme 多继承, 当多个父类出现相同的方法时， 以左侧的为准
class Animal():
    def __init__(self, name, food):
        self.name = name
        self.food = food

    def eat(self):
        print("%s喜欢吃%s" % (self.name, self.food))

    def shout(self):
        print(self.name, "汪汪叫")


class Human():
    def test(self):
        print("test function execute.")

    def shout(self):
        print(self.name, "喵喵叫")


# class Cat(Animal, Human):
class Cat(Human, Animal):
    def __init__(self, name, food):
        super().__init__(name, food)


cat1 = Cat("小猫", "小鱼")
cat1.shout()
cat1.eat()
cat1.test()